{% extends "base.html" %}
{% block content_header %}
<h1>爬虫蜘蛛</h1>
{% endblock %}
{% block content_body %}
<div class="box">
    <div class="box-header">
        <h3 class="box-title">定时任务 (爬虫蜘蛛)</h3>
    </div>
    <div class="box-body table-responsive">
        <table class="table table-striped">
            <tr>
                <th style="width: 50px">编号</th>
                <th style="width: 50px">爬虫名</th>
                <th style="width: 50px">最后运行时间</th>
                <th style="width: 50px">平均运行时间</th>
            </tr>
            {% for spider_instance in spider_instance_list %}
            <tr>
                <td>{{ spider_instance.spider_instance_id }}</td>
                <td>{{ spider_instance.spider_name }}</td>
                <td>{{ spider_instance.spider_last_runtime }}</td>
                <td>{{ readable_time(spider_instance.spider_avg_runtime) }}</td>
            </tr>
            {% endfor %}
        </table>
    </div>
</div>
{% endblock %}